package com.medi.chats.service.user;

import com.medi.chats.dao.McUsersMapper;
import com.medi.chats.model.McUsers;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * 描述:
 * 用户服务
 *
 * @outhor Administrator
 * @create 2018-10-25 16:12
 */
@Service
public class UserService {

    @Autowired
    McUsersMapper mcUsersMapper;

    public McUsers getUserInfoByOpenId(Map map) {
        return mcUsersMapper.getUserInfoByOpenId(map);
    }


    public long insertUserBackWithId(McUsers users) {
        return mcUsersMapper.insertUserBackWithId(users);
    }
}
